def parse_path(url_path):
    try:
        string = url_path.split('?')[1]
        lst = string.split('&')
        dict_list = []
        for item in lst:
            dict_list.append(item.split('='))
        return dict(dict_list)
    except:
        return {}


def main():
    path = 'https://we.51job.com/api/job/search-pc?api_key=51job&timestamp=1689775425&keyword=Python&searchType=2&function=&industry=&jobArea=190200&jobArea2=&landmark=&metro=&salary=&workYear=&degree=&companyType=&companySize=&jobType=&issueDate=&sortType=0&pageNum=1&requestId=&pageSize=20&source=1&accountId=&pageCode=sou%7Csou%7Csoulb'
    print(parse_path(path))


if __name__ == '__main__':
    main()
